<template>
  <div class="odm-page">
    <Search @search="getSearchModel" />
    <div class="table-container">
      <Table :searchModel="searchModel"/>
    </div>
  </div>
</template>

<script setup>
import Search from "./components/search.vue";
import Table from "./components/table.vue";
import { ref } from "vue";
const searchModel = ref({})

const getSearchModel = (value) => {
  searchModel.value = value
  console.log(value)
};
</script>

<style lang="less" scoped>
.odm-page {
  min-height: 100%;
  padding: 34px 27px 24px 30px;
  background: #fff;
  border-radius: 6px;
  .table-container {
    margin-top: 30px;
  }
}
</style>
